package com.hxd.otc.common.enums;

public enum AdvertFeeEnum {
    NONE(0, "不收取"), STATIC(1, "固定"), SCALE(2, "比例");

    private final int feeType;
    private final String desc;

    AdvertFeeEnum(int feeType, String desc) {
        this.feeType = feeType;
        this.desc = desc;
    }

    public static AdvertFeeEnum getInstance(int feeType) {
        switch (feeType) {
            case 1:
                return STATIC;
            case 2:
                return SCALE;
            case 0:
            default:
                return NONE;
        }
    }

}
